package com.example.rabbit.consumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitmqListenerDemo {

    @RabbitListener(queues = "someQueue")
    public void onMessage(String message) {
        System.out.println("RabbitmqListenerDemo.onMessage: " + message);
    }
}
